xend: Update info['platform']['pci']
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 09:06:01 +0000 (10:06 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 09:06:01 +0000 (10:06 +0100)
commit44c1edcdb56a802d8186bcb5e5a302189d257943
tree4811f0b8485c0baa242b05ed5ccd37b996204ec9
parent60dadd604d277e30f6908d1ac8cb8add12261d1b
xend: Update info['platform']['pci']

This patch updates info['platform']['pci'] for PCI devices
assignment to domains.

When a domain is started, xend confirms by using xc.test_assign_device
whether PCI devices can be assigned to the domain.  For the
confirmation, info['platform']['pci'] must be an appropriate value.
However, info['platform']['pci'] may be not appropriate.  Because
info['platform']['pci'] isn't almost always updated even if the PCI
device configuration of the domain was changed by using xm
pci-attach/detach.  This patch updates info['platform']['pci'] to the
appropriate value when domains are started.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/util/pci.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/pciif.py